package cn.net.xyan.kotlin

import org.junit.Test
import java.util.regex.Pattern

/**
 * Created by zarra on 2017/5/4.
 */

class RegexTest{
    @Test
    fun test1(){
        var t = "正确答案：BC。";

        val answerPattern = "正确答案.+"
        var ar = Pattern.compile(answerPattern)

        val m = ar.matcher(t);

        println(m.find())
    }
}
